{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "a981099f",
   "metadata": {},
   "outputs": [
    {
     "ename": "SyntaxError",
     "evalue": "invalid syntax (3923367329.py, line 5)",
     "output_type": "error",
     "traceback": [
      "\u001b[1;36m  Input \u001b[1;32mIn [1]\u001b[1;36m\u001b[0m\n\u001b[1;33m    print(beer-num,word,\"of beer\".)\u001b[0m\n\u001b[1;37m                                  ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n"
     ]
    }
   ],
   "source": [
    "#课本43页练习 涉及知识点：模块，变量，条件判断，time模块，random模块，for循环 \n",
    "word=\"bottle\"\n",
    "for beer_num in range(99,9,-1):\n",
    "    print(beer-num,word,\"of beer on the wall.\")\n",
    "    print(beer-num,word,\"of beer\".)\n",
    "    print(\"Take one down.\")\n",
    "    print(\"Pass it around.\")\n",
    "    if beer-num = 1:\n",
    "        print(\"No more bottles of beer on the wall\".)\n",
    "        \n",
    "    else:\n",
    "        new.num = beer-num-1\n",
    "    if nuw num=1:\n",
    "        word=\"bottle\"\n",
    "        print(new-num,word,\"of beer on the wall\".)\n",
    "        print()\n",
    "        "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ebc97ea0",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
